<form class="space-y-8" method="post" action="{{ admin_url }}/plugins/article_recommender/settings/save"
      onsubmit="event.preventDefault(); handleSettingsSubmit(this);">
    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
    
    <div class="space-y-6">
        <!-- 标题 -->
        <div class="border-b border-gray-200 dark:border-gray-700 pb-4">
            <h3 class="text-lg font-medium text-gray-900 dark:text-white">推荐设置</h3>
            <p class="mt-1 text-sm text-gray-500">配置文章推荐的相关参数</p>
        </div>
        
        <!-- 设置项 -->
        <div>
            <label class="block text-sm font-medium text-gray-700 dark:text-gray-300">
                推荐文章数量
            </label>
            <input type="number" 
                   name="recommend_count" 
                   value="{{ settings.recommend_count }}"
                   min="1"
                   max="100"
                   class="mt-2 block w-full px-3 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md text-gray-900 dark:text-gray-100 focus:ring-0 focus:border-blue-500">
            <p class="mt-2 text-sm text-gray-500">设置每篇文章下方显示的推荐文章数量（1-100之间）</p>
        </div>
    </div>
    
    <!-- 提交按钮 -->
    <div class="flex justify-end pt-4 border-t border-gray-200 dark:border-gray-700">
        <button type="submit" 
                class="inline-flex items-center px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 focus:outline-none transition-colors duration-200">
            保存设置
        </button>
    </div>
</form> 